package com.sdy.hospitalguard.biz.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 操作日志表:operation_log
 * </p>
 *
 * @author zzq
 * @since 2020-05-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class OperationLog extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 日志ID
     */
    @TableId
    private Integer id;

    /**
     * 操作用户ID
     */
    private Integer managerId;

    /**
     * 操作类型
     */
    private Integer operationType;

    /**
     * 操作详情
     */
    private String operationDetails;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date createTime;

}
